/* eslint-disable */
import mockjs from 'mockjs';

export default {
  'POST /api/tenant/add': (req, res) => {
    res.send(
      mockjs.mock(
        {
          "ret": 0,
          "error": null
        }
      ),
    );
  },
  'POST /api/tenant/list': (req, res) => {
    res.send(
      mockjs.mock(
        {
            "ret": 0,
            "data": {
                "list": [
                    {
                        "id": "60ffcd19b664df07a49ea6d5",
                        "tenantId": "tenant_60ffcd190000000000000000",
                        "tenantRoleId": "",
                        "name": "阿西巴巴",
                        "visible": true,
                        "numbers": 2,
                        "address": {
                            "province": "",
                            "city": "",
                            "district": ""
                        },
                        "createTime": 1627376921,
                        "updateTime": 1627376921,
                        "deadTime": 1880096906,
                        "accounts": []
                    },
                    {
                        "id": "60ffc405b664df07a49ea6d4",
                        "tenantId": "tenant_60ffc4050000000000000000",
                        "tenantRoleId": "",
                        "name": "阿西巴",
                        "visible": true,
                        "numbers": 5,
                        "address": {
                            "province": "",
                            "city": "",
                            "district": ""
                        },
                        "createTime": 1627374597,
                        "updateTime": 1627374597,
                        "deadTime": 1627374592,
                        "accounts": []
                    }
                ],
                "total": 2,
                "query": 2
            },
            "error": null
        }
      ),
    );
  },
}